package com.hc.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.hc.mapper.ProjAuthorMapper;
import com.hc.domain.ProjAuthor;
import com.hc.service.ProjAuthorService;

import java.util.List;

/**
 * @author: hecai
 * @date: 2021/11/10 14:09
 * @description: 
 */
@Service
public class ProjAuthorServiceImpl implements ProjAuthorService{

    @Resource
    private ProjAuthorMapper projAuthorMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return projAuthorMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ProjAuthor record) {
        return projAuthorMapper.insert(record);
    }

    @Override
    public int insertSelective(ProjAuthor record) {
        return projAuthorMapper.insertSelective(record);
    }

    @Override
    public ProjAuthor selectByPrimaryKey(Long id) {
        return projAuthorMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ProjAuthor record) {
        return projAuthorMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProjAuthor record) {
        return projAuthorMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Integer> getProjAuthorIds(Long projId) {
        return projAuthorMapper.getProjAuthorIds(projId);
    }

    @Override
    public List<Integer> selectAidByPrimaryKey(Long id) {
        return projAuthorMapper.selectAidByPrimaryKey(id);
    }
}
